<template>
  <div>
    <h1>Counter组件</h1>
    <pre>{{ list }}</pre>
    <h2>{{ count }}</h2>
    <button @click="add">+1</button>
  </div>
</template>

<script>
export default {
  props: ["list", "count"],
  methods: {
    add() {
      this.$emit('qwe')
    }
  }
};
</script>